package com.xilin.wiki.controller;

import com.xilin.wiki.domain.Demo;
import com.xilin.wiki.domain.EbookSnapshot;
import com.xilin.wiki.domain.Test;
import com.xilin.wiki.service.DemoService;
import com.xilin.wiki.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
public class DemoController {

    @Autowired
    private DemoService demoService;

    @GetMapping("/demo/list")
    public List<Demo>list(){
        return demoService.list();
    }


}
